const baseUrl = "http://127.0.0.1:7001"
export const createUser = (data, cb) => {
  return wx.request({
    url: `${baseUrl}/user`,
    method: "POST",
    data,
    success(data) {
      cb(data)
    },
    fail(error) {
      console.log(error)
    }
  })
}
